package com.walterlife.javacore;

/**
 * GCTest
 *
 * @author zhuyuwei
 * @date 2017/5/16
 */
public class GCTest {

    public static void main(String[] args) throws Throwable {
        java.lang.String string = new String();
        Block block = new Block();
        block = null;
        System.gc();
        System.out.println("main process");
    }

    static class Block {
        byte[] _200M = new byte[200*1024*1024];

        @Override
        protected void finalize() {
            System.out.println("Finalize!!!");
        }
    }

}
